package com.usian.wemedia.controller;

import com.usian.apis.wemedia.LoginControllerApi;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmUserDto;
import com.usian.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/28 14:27
 */
@RestController
@RequestMapping("login")
public class LoginController implements LoginControllerApi {

    @Autowired
    WmUserService wmUserService;
    @Override
    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmUserDto wmUserDto) {

        return wmUserService.login(wmUserDto);
    }
}
